import express from 'express';
import * as rechargeRouter from './recharge.controller';

const router = express.Router();

/**
 * 获取内容
 */
router.get('/recharge', rechargeRouter.index);

/**
 * 创建内容
 */
router.post('/recharge', rechargeRouter.store);

/**
 * 更新内容
 */
router.patch('/recharge/:postId', rechargeRouter.update);

/**
 * 删除内容
 */
router.delete('/recharge/:postId', rechargeRouter.destroy);

/**
 * 导出路由
 */
export default router;
